import request from '@/utils/request'

// 查询api请求配置列表
export function listJob(query) {
  return request({
    url: '/quartz/job/list',
    method: 'get',
    params: query
  })
}

// 查询api请求配置详细
export function getJob(amId) {
  return request({
    url: '/quartz/job/' + amId,
    method: 'get'
  })
}

// 新增api请求配置
export function addJob(data) {
  return request({
    url: '/quartz/job',
    method: 'post',
    data: data
  })
}

// 修改api请求配置
export function updateJob(data) {
  return request({
    url: '/quartz/job/edit',
    method: 'post',
    data: data
  })
}

// 删除api请求配置
export function delJob(amId) {
  return request({
    url: '/quartz/job/delete/' + amId,
    method: 'post'
  })
}

// 导出api请求配置
export function exportJob(query) {
  return request({
    url: '/quartz/job/export',
    method: 'get',
    params: query
  })
}
//请求不带token的logo图片信息
export function getApplicationInfo() {
  return request({
    url: '/quartz/job/application',
    method: 'get',
  })
}
//请求带token的logo图片信息
export function getApplicationIInfo() {
  return request({
    url: '/quartz/job/applicationI',
    method: 'get',
  })
}



